package com.lysj.bhp.article.repository;

import com.lysj.bhp.announcement.domain.Announcement;
import com.lysj.bhp.article.domain.Article;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface ArticleRepository extends JpaRepository<Article, Long>,JpaSpecificationExecutor {

    List<Article> findByIsExistOrderByDateDesc(int isExist);
}
